<template>
  <div id="clienteleIndex">
  			<router-view > </router-view>
  </div>
</template>
<script >
	import { convertHelper } from '@/js/bese64.js'
	import { splitParams } from '@/js/public.js'
export default {
  name:'clienteleIndex',
  components:{ 
   
  },
  data(){
      return{
				
      }
  },
  mounted() { 
  	let url=this.$store.state.urls;
  	var  urlParam=splitParams(window.location.search);
  	if(urlParam['shopid']){
  		window.location.href=url+"/GroupBuy/Login?backUrl="+convertHelper.base64encode(this.getNewUrl())+"&shopID="+urlParam['shopid']
  		return;
  	}
  	this.$http.get('/GroupBuy/GetUser',null,{async: false}).then((res)=>{
  		if(res.data.code!=1){
  			alert('未登录');
  		}
  	}).catch((res)=>{
  		
  	}); 
  },
  methods: {
  	getNewUrl(){
  		var loca= window.location;
  		var urlParam= splitParams(loca.search);
  		var url1=loca.pathname+'?';
  		for(var urlKey in urlParam){
  			if(urlKey.toLowerCase()!=='shopid'){
  				url1+=(urlKey+'='+urlParam[urlKey]);
  			}
  		}
  		return url1;
  	} 
  },
   
  
  }
</script>
<style> 

	
.mian{
	padding-bottom:0.02rem;
}
._v-container>._v-content>.loading-layer{
	height: auto !important;
	font-size: 0.4rem !important;
  /*line-height: 0.5rem !important;*/
	padding-bottom: 1.2rem; 
}
._v-container>._v-content>.loading-layer .spinner-holder .spinner{
	margin-top: 0 !important;
}
/*.address{
	color: #6530E0 !important;
}*/
.address-container{
	 	height: 5rem !important;
	 	overflow: auto !important;
	 }
.mint-swipe-indicator.is-active{
	background-color: #6530E0 !important;
	opacity:1;
}
 .mint-radio-input:checked + .mint-radio-core{
 	    background-color: #6530E0;
    border-color: #6530E0;
 }
 .address-container ul li{
 	font-size: 0.373333rem;
 }
	.box-show{
		background: linear-gradient(-92deg,#8900e0 0%, #1896e0 180%);
		box-shadow: 0.1rem 0.1rem 0.1rem 1px #ccc; 
		border-radius:0.5rem;
	}
	
 </style>
